<%-- 
    Document   : searchprecomp
    Created on : May 17, 2012, 10:28:06 AM
    Author     : Jayson Kiong
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="Model.Precomputation"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel = "stylesheet" type = "text/css" href = "quicklendstyle.css"/>
        <script type="text/javascript" src="quicklendjs.js"></script>
        <title>Search Precomp</title>
    </head>
    <body>
        <%ArrayList precompar = (ArrayList)session.getAttribute("precomplist");
          int arsize = precompar.size(),arctr;
          Precomputation precomplist = new Precomputation();
          
        %>
        <div id="contenttitle" style="position: absolute; top:13px; left:25px;">
            Search Precomputation Entry
        </div>
        
        <div id="typetable" style="position:absolute; top:70px; left:20px; font-family: segoe ui; font-size:11px;overflow: auto; width: 600; height:500px; padding:0px; margin: 0px; ">
                                <table border="1" cellspacing=0 cellpadding=2>
                                <tr>
                                    <th width="100" bgcolor="lightgrey">Pre-comp no.</th>
                                    <th width="100" bgcolor="lightgrey">Last Name</th>
                                    <th width="100" bgcolor="lightgrey">First Name</th>
                                    <th width="100" bgcolor="lightgrey">Middle Name</th>
                                    <th width="100" bgcolor="lightgrey">Client Type</th>
                                    <th width="100" bgcolor="lightgrey">Sub Type</th>
                                    <th width="100" bgcolor="lightgrey">Loan Type</th>
                                </tr>
                                <%arctr=0;
                                  for(int x=0;x<arsize;x++){
                                  precomplist=(Precomputation)precompar.get(arctr); 
                                 %>
                                  <tr><td><%=precomplist.getPrecompno()%></td><td><%=precomplist.getLastname()%></td><td><%=precomplist.getFirstname()%></td><td><%=precomplist.getMiddlename()%></td><td><%=precomplist.getClienttype()%></td><td><%=precomplist.getSubtype()%></td><td><%=precomplist.getLoantype()%></td><td><input type="button" name="select" value="Select" style="background-color:#49743D;font-weight:bold;color:#ffffff;" onclick="selectPrecomp(<%=precomplist.getPrecompno()%>)"></td></tr>
                                  <%arctr++;}%>   
                                
                             </table>
        </div>
        
    </body>
</html>
